package com.css.fxfzaqbz.modules.assess2.repository;


import com.css.fxfzaqbz.modules.assess2.entity.KeyplaceRiskassessment;
import com.css.fxfzaqbz.modules.assess2.entity.TaskContent;

import java.sql.Timestamp;
import java.util.List;

public interface KeyplaceRiskassessmentRepository {

    List<KeyplaceRiskassessment> getByIaId(String activeId);

    KeyplaceRiskassessment getKeyplaceRiskassessmentById(String id);

    void deleteKeyplaceRiskassessment(String id, String userId, Timestamp currentTimestamp);

    KeyplaceRiskassessment savekeyplaceRiskassessment(KeyplaceRiskassessment keyplaceRiskassessment);

    void updateKeyplaceRiskassessment(KeyplaceRiskassessment keyplaceRiskassessment);

    List<TaskContent> getKeyplaceRiskassessmentByRelation1(String id);

    List<KeyplaceRiskassessment> getKeyplaceRiskassessmentByIaId(String activeId);

    List<KeyplaceRiskassessment> check(KeyplaceRiskassessment keyplaceRiskassessment);

    List<KeyplaceRiskassessment> getByEntity(KeyplaceRiskassessment keyplaceRiskassessment);

    void submitResult(String id, String description);

    void removeResult(String id, String description);

    void finalSubmission(List<String> ids, String userName, String mobilePhone,Timestamp currentTimestamp);

    void saveDescription(List<String> ids, String description);

    List<KeyplaceRiskassessment> getZdByIaId(String id);

    List<KeyplaceRiskassessment> getByIaIdAndContent(String iaId, String zdcsfxpg);
}
